package com.bank6677.sync.csm.domain.old;

import java.util.Date;

public class SmsSubmit {

    private Long         smsId;

    private String       destPhone;

    private String       content;

    private Integer      sendTime;

    private String       stat;

    private String       remark;

    private Date         createDt;

    private Date         updateDt;

    public static String NEW_SMS_STATUS = "N";
    public static String WAIT_STATUS    = "W";
    public static String SUCCESS_STATUS = "S";
    public static String FAILURE_STATUS = "F";

    public Long getSmsId() {
        return smsId;
    }

    public void setSmsId(Long smsId) {
        this.smsId = smsId;
    }

    public String getDestPhone() {
        return destPhone;
    }

    public void setDestPhone(String destPhone) {
        this.destPhone = destPhone == null ? null : destPhone.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Integer getSendTime() {
        return sendTime;
    }

    public void setSendTime(Integer sendTime) {
        this.sendTime = sendTime;
    }

    public String getStat() {
        return stat;
    }

    public void setStat(String stat) {
        this.stat = stat == null ? null : stat.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Date getCreateDt() {
        return createDt;
    }

    public void setCreateDt(Date createDt) {
        this.createDt = createDt;
    }

    public Date getUpdateDt() {
        return updateDt;
    }

    public void setUpdateDt(Date updateDt) {
        this.updateDt = updateDt;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (!(that instanceof SmsSubmit)) {
            return false;
        }
        SmsSubmit other = (SmsSubmit) that;
        return this.getSmsId() == null ? other == null : this.getSmsId().equals(other.getSmsId())
                && this.getDestPhone() == null ? other == null : this.getDestPhone().equals(
                other.getDestPhone())
                && this.getContent() == null ? other == null : this.getContent().equals(
                other.getContent())
                && this.getSendTime() == null ? other == null : this.getSendTime().equals(
                other.getSendTime())
                && this.getStat() == null ? other == null : this.getStat().equals(other.getStat())
                && this.getRemark() == null ? other == null : this.getRemark().equals(
                other.getRemark())
                && this.getCreateDt() == null ? other == null : this.getCreateDt().equals(
                other.getCreateDt())
                && this.getUpdateDt() == null ? other == null : this.getUpdateDt().equals(
                other.getUpdateDt());
    }

    @Override
    public int hashCode() {
        int hash = 23;
        if (getSmsId() != null) {
            hash *= getSmsId().hashCode();
        }
        if (getDestPhone() != null) {
            hash *= getDestPhone().hashCode();
        }
        if (getContent() != null) {
            hash *= getContent().hashCode();
        }
        if (getSendTime() != null) {
            hash *= getSendTime().hashCode();
        }
        if (getStat() != null) {
            hash *= getStat().hashCode();
        }
        if (getRemark() != null) {
            hash *= getRemark().hashCode();
        }
        if (getCreateDt() != null) {
            hash *= getCreateDt().hashCode();
        }
        if (getUpdateDt() != null) {
            hash *= getUpdateDt().hashCode();
        }
        return hash;
    }
}
